import { App } from "vue";

export default{
    install(Vue:App){
        const files = import.meta.glob('./**/*.ts')
        Object.keys(files).forEach(async key => {
            const name = key.replace(/(\.\/|\.ts)/g, '')
            const module = await files[key]();
            Vue.directive(module['default']?.name || name, module['default'])
        })
    }
}